System with multiple network protocol support

ABSTRACT

The present invention provides a system with multiple network protocol support. The system includes: a first memory, the first memory comprising program instructions for processing upper and lower layers of the network protocol; a first processor, where the first processor processes the upper layers of the network protocol for a data packet according to the program instructions in the first memory; and a second processor, where the second processor processes lower layers of the network protocol for the data packet according to the program instructions in the first memory. When the network protocol is changed, instructions for the new protocol is fetched from a second memory and placed in the first memory. Thus, the hardware of the system need not be redesigned when changing protocols, and the same on-system unit is used to implement each protocol. This increases flexibility, provides cost effectiveness, and increases the reliability of the system.

FIELD OF THE INVENTION

The present invention relates to networks, and more particularly tomultiple protocol support in networks.

BACKGROUND OF THE INVENTION

FIG. 1 illustrates a conventional network. The network includes aplurality of nodes 102, 104, and 106. Each of the nodes 102-106 can befunctioning using different protocols. Thus, when a packet is to beexchanged between nodes, the packet must be packed according to theprotocol understood by the receiving node, or the receiving node mustunderstand the protocol used by the sending node. Typically, hardwaredesigned specifically for this protocol is used by a processor in thesending or the receiving node to properly pack or unpack the data.However, when either node's protocol changes, the hardware must beredesigned. This is inflexible. Alternately, several hardware units, onefor each possible protocol used by a node, may be used. Conventionally,this approach requires the hardware units to be external to theprocessor of the node. This is costly.

Accordingly, there exists a need for an improved system with multiplenetwork protocol support. The system should not require hardwareredesign when a protocol is changed and should be cost effective toimplement. The present invention addresses such a need.

SUMMARY OF THE INVENTION

The present invention provides a system with multiple network protocolsupport. The system includes: a first memory, the first memorycomprising program instructions for processing upper and lower layers ofthe network protocol; a first processor, where the first processorprocesses the upper layers of the network protocol for a data packetaccording to the program instructions in the first memory; and a secondprocessor, where the second processor processes lower layers of thenetwork protocol for the data packet according to the programinstructions in the first memory. When the network protocol is changed,instructions for the new protocol is fetched from a second memory andplaced in the first memory. Thus, the hardware of the system need not beredesigned when changing protocols, and the same on-system unit is usedto implement each protocol. This increases flexibility, provides costeffectiveness, and increases the reliability of the system.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 illustrates a conventional network.

FIG. 2 illustrates a preferred embodiment of a system with multiplenetwork protocol support in accordance with the present invention.

FIG. 3 is a flow chart illustrating the receiving of a data packet bythe system with multiple network protocol support in accordance with thepresent invention.

FIG. 4 is a flow chart illustrating the sending of data by the systemwith multiple network protocol support in accordance with the presentinvention.

DETAILED DESCRIPTION

The present invention provides an improved system with multiple networkprotocol support. The following description is presented to enable oneof ordinary skill in the art to make and use the invention and isprovided in the context of a patent application and its requirements.Various modifications to the preferred embodiment will be readilyapparent to those skilled in the art and the generic principles hereinmay be applied to other embodiments. Thus, the present invention is notintended to be limited to the embodiment shown but is to be accorded thewidest scope consistent with the principles and features describedherein.

To more particularly describe the features of the present invention,please refer to FIGS. 2 through 4 in conjunction with the discussionbelow.

FIG. 2 illustrates a preferred embodiment of a system with multiplenetwork protocol support in accordance with the present invention. Thesystem 200 comprises a first processor 202, a dual port memory 204, asecond processor 204, an analog-to-digital converter (ADC) 208, and adigital-to-analog converter (DAC) 210. The dual port memory 204comprises an instruction memory 204 a and a data memory 204 b. Thesystem 200 may also comprise a master bus 212 through which the elementsof the system 200 may communicate. An external bus interface 214provides communication between the system 200 and external elements,such as an external memory 218. The system 200 may also communicate witha network, such as an Ethernet 216. The system in accordance with thepresent invention may be used in any network in which data packets areexchanged between nodes. The nodes may include gateways, sensors,actuators, or any other similar-typed device.

The first processor 202 processes the upper layers of a network protocolfor a data packet. Typically, the upper layers includes layers threethrough seven of a conventional seven-layer protocol. The seven-layerprotocol is well known in the art and will not be further describedhere. In the case of an incoming data packet, the processor 202 unpackslayers three through seven of the network protocol from an interim datastored in the data memory 204 b. In the case of an outgoing data, theprocessor 202 packs layers seven through three of the network protocoland stores the interim data in the data memory 204 b.

The instruction memory 204 a of the dual port memory 204 stores theinstructions for a particular network protocol. Incoming and outgoingdata packets and data are processed according to the instructions storedhere. The data memory 204 b of the dual port memory 204 stores interimdata in the process of being packed or unpacked.

The second processor 206 processes the lower layers of the networkprotocol for a data packet. Typically, the lower layers includes layersone (physical layer) and two (link layer) of a conventional 7-layerprotocol. In the case of an incoming data packet, the processor 206unpacks layers one and two of the network protocol for the packet andstores the interim data in the data memory 204 b. In the case of anoutgoing data, the processor 206 fetches an interim data from the datamemory 204 b and packs layers one and two of the network protocol forthe data.

The ADC 208 receives an incoming data packet from a media, converts itinto a digital signal, and forwards this digital signal to the secondprocessor 206. The DAC 210 receives an outgoing data packet from thesecond processor 206, converts the packet into an analog signal, andsends the packet along the media.

An important feature of the system 200 in accordance with the presentinvention is the fact that the first processor 202 is used to processthe upper layers of the network protocol while a second and separateprocessor 206 is used to process the lower layers of the networkprotocol. In conventional systems, the upper layers are processed usingsoftware. However, to process the lower layers, conventional systems usehardware specifically designed for the particular protocol. This isnecessary because layer one and two of the protocol stack typicallyrequire tight timing parameters and the processing of analog signals.This hardware must be redesigned whenever the protocol is changed.Otherwise, several hardware units external to the system, one for eachpossible protocol, is used. But with the system 200 in accordance withthe present invention, the lower protocol layers are processed usingdigital signal processing techniques implemented in software. Thesoftware instructions for a particular protocol is stored in theinstruction memory 204 a. Whenever the protocol is to be changed, thefirst processor 202 fetches the instructions for the new protocol from asource, such as an external memory 218, and places these instructions inthe instruction memory 204 a. During the processing of data packets, thefirst 202 and the second 206 processors implement the instructions inthe instruction memory 204 a. In this manner, the hardware of the systemneed not be redesigned when changing protocols. In addition, the sameon-system unit is used to implement each protocol, eliminating the needfor external hardware units. This increases the flexibility of thesystem 200, is more cost effective, and increases the reliability of thesystem 200.

FIG. 3 is a flow chart illustrating the receiving of a data packet bythe system with multiple network protocol support in accordance with thepresent invention. In the preferred embodiment, upon power up of thesystem 200, the first processor 202 fetches instructions for a protocolfrom the memory 218 and stores them in the instruction memory 204 a.Whenever the network protocol needs to be changed, via step 302, thenthe first processor 202 fetches the instructions for the new protocolfrom the memory 218 and stores them in the instruction memory 204 a, viastep 304. The ADC 208 receives a data packet from the media and convertsthe packet into a digital signal, via step 306. The second processor 206unpacks layers one and two of the network protocol for the packetaccording to the instructions in the instruction memory 204 a, andplaces the interim data into the data memory 204 b, via step 308. Thesecond processor 206 then sends an interrupt to the first processor 202,informing the first processor 202 that an interim data has been storedin the data memory 204 b. The first processor 202 receives the interruptand fetches the interim data from the data memory 204 b, via step 312.The first processor 202 then unpacks layers three through seven of thenetwork protocol for the interim data according to the instructions inthe instruction memory 204 a, via step 314. The first processor 202 thenforwards the unpacked data, via step 316. The unpacked data could beforwarded to a memory, such as memory 218, or to an Ethernet 216.

FIG. 4 is a flow chart illustrating the sending of data by the systemwith multiple network protocol support in accordance with the presentinvention. Whenever the network protocol needs to be changed, via step402, the first processor 202 fetches the instructions for the newprotocol from the memory 218 and stores them in the instruction memory204 a, via step 404. The first processor 202 obtains the outgoing dataand packs layers three through seven of the network protocol for thedata according to the instructions in the instruction memory 204 a, viastep 406. The first processor 202 then stores the interim data in thedata memory 204 b, via step 408. Next, the second processor 206 fetchesthe interim data from the data memory 204 b and packs layers one and twoof the network protocol for the interim data according to theinstructions in the instruction memory 204 a, via step 410. The DAC 210then converts the data packet into an analog signal and sends the packetonto the media, via step 412.

An improved system with multiple network protocol support has beendisclosed. The system comprises a first processor which processes theupper layers and a second and separate processor which processes thelower layers of a network protocol. When the protocol is changed, thefirst processor fetches the instructions for the new protocol from asource and places these instructions in an instruction memory. Duringthe processing of data packets, the first and the second processorsimplement the instructions in the instruction memory. In this manner,the hardware of the system need not be redesigned when changingprotocols, and the same on-system unit is used to implement eachprotocol. This increases flexibility, provides cost effectiveness, andincreases the reliability of the system.

Although the present invention has been described in accordance with theembodiments shown, one of ordinary skill in the art will readilyrecognize that there could be variations to the embodiments and thosevariations would be within the spirit and scope of the presentinvention. Accordingly, many modifications may be made by one ofordinary skill in the art without departing from the spirit and scope ofthe appended claims.

1. A system for supporting a network protocol, comprising: a firstmemory, the first memory comprising program instructions for processingupper and lower layers of the network protocol; a first processor,wherein the first processor processes the upper layers of the networkprotocol for a data packet according to the program instructions in thefirst memory; and a second processor, wherein the second processorprocesses lower layers of the network protocol for the data packetaccording to the program instructions in the first memory.
 2. The systemof claim 1, wherein the first memory comprises: an instruction memorycomprising the program instructions; and a data memory.
 3. The system ofclaim 1, further comprising: an analog-to-digital converter (ADC)coupled to the second processor; and a digital-to-analog converter (DAC)coupled to the second processor.
 4. The system of claim 1, furthercomprising: a second memory, the second memory comprising sets ofprogram instructions for processing upper and lower layers of aplurality of network protocols, wherein one of the sets of programinstructions is stored in the first memory when the network protocol isto be changed.
 5. A system for supporting a network protocol,comprising: a first memory, the first memory comprising programinstructions for processing upper and lower layers of the networkprotocol; a first processor, wherein the first processor processes theupper layers of the network protocol for a data packet according to theprogram instructions in the first memory; a second processor, whereinthe second processor processes lower layers of the network protocol forthe data packet according to the program instructions in the firstmemory; and a second memory, the second memory comprising sets ofprogram instructions for processing upper and lower layers of aplurality of network protocols, wherein one of the sets of programinstructions is stored in the first memory when the network protocol isto be changed.
 6. A method for supporting a network protocol, comprisingthe steps of: (a) receiving a data packet from a medium; (b) unpackinglower layers of the network protocol for the data packet by a secondprocessor according to program instructions in a memory; and (c)unpacking upper layers of the network protocol for the data packet by afirst processor according to the program instructions in the memory. 7.The method of claim 6, wherein the receiving step (a) comprises: (a1)receiving the data packet from a medium by an ADC; and (a2) convertingthe data packet into a digital signal.
 8. The method of claim 6, whereinthe unpacking step (b) comprises: (b1) unpacking layers one and two ofthe network protocol for the data packet according to the programinstructions in the memory, resulting in an interim data; (b2) placingthe interim data in a data memory; and (b3) sending an interrupt fromthe second processor to the first processor.
 9. The method of claim 6,wherein the unpacking step (c) comprises: (c1) receiving an interrupt bythe first processor; (c2) fetching an interim data from a data memory bythe first processor; and (c3) unpacking layers three through seven ofthe network protocol for the interim data by the first processoraccording to the program instructions in the memory.
 10. The method ofclaim 6, further comprising: (d) determining if the network protocol isto be changed; (e) fetching program instructions for a new networkprotocol if the network protocol is to be changed; and (f) storing theprogram instructions for the new network protocol in the memory.
 11. Amethod for supporting a network protocol, comprising the steps of: (a)obtaining a data by a first processor; (b) packing upper layers of thenetwork protocol for the data by the first processor according toprogram instructions in a memory; and (c) packing lower layers of thenetwork protocol for the data by a second processor according to theprogram instructions in the memory.
 12. The method of claim 11, whereinthe packing step (b) comprises: (b1) packing layers three through sevenof the network protocol for the data by the first processor according tothe program instructions in the memory, resulting in an interim data;and (b2) storing the interim data in a data memory.
 13. The method ofclaim 11, wherein the packing step (c) comprises: (c1) fetching aninterim data from a data memory by the second processor; and (c2)packing layers one and two of the network protocol for the interim databy the second processor according to the program instructions in thememory.
 14. The method of claim 11, further comprising: (d) determiningif the network protocol is to be changed; (e) fetching programinstructions for a new network protocol if the network protocol is to bechanged; and (f) storing the program instructions for the new networkprotocol in the memory.